VisualControl
The VisualControl class represents a base visual control with properties related to visibility, styling, and interactivity.
Properties
| Name | Description |
|---|---|
| ContextMenuColumnKey | The key of the column associated with the context menu. |
| Caption | The caption of the control. |
| Loading | Indicates whether the control is in a loading state. |
| ControlId | The unique identifier of the control. |
| Style | The styling properties for the control. |
| ClientEvents | A list of client-side events associated with the control. |
| ContextMenuTarget | The target of the context menu. |
| Title | The title of the control. |
| ExecutedServerEvents | A list of server events that have been executed. |
| Name | The name of the control. |
| Visible | Indicates whether the control is visible. |
| ClientVisible | Indicates whether the control is visible on the client side. |
| ServerEvents | A list of server-side events associated with the control. |
| DefaultClientEnabled | Indicates whether the control is enabled by default on the client side. |
| ClientEnabled | Indicates whether the control is enabled on the client side. |
| Enabled | Indicates whether the control is enabled. |
| ContextMenuKey | The key associated with the context menu. |
| ContainerStyle | The styling properties for the container of the control. |
| CustomClassName | The custom CSS class name applied to the control. |
| DefaultEnabled | Indicates whether the control is enabled by default. |
Constructors
| Name | Description |
|---|---|
| BaseControl() | Initializes a new instance of the VisualControl class with default values. |
| VisualControl() | Initializes a new instance of the VisualControl class with empty event lists. |
Methods
| Name | Description |
|---|---|
| ScrollTo() | Scrolls to the control. |
| HideLoading() | Removes the loading state from the control. |
| FireClick() | Triggers the Click event. |
| OnInit(sender, e) | Raises the Init event. |
| Hide() | Hides the control. |
| OnPropertyValueGet(sender, e) | Raises the PropertyValueGet event. |
| Show() | Makes the control visible. |
| OnRender(sender, e) | Raises the Render event. |
| OnLoad(sender, e) | Raises the Load event. |
| GetProtectedData(isDisabledOrReadOnly) | #import (Bimser.CSP.FormControls.Base.ICanProtectData.GetProtectedData(bool)) (shortDescription) |
| ToggleLoading() | Toggles the loading state of the control. |
| GetDifferences(otherObj) | Compares the current instance with another control and returns the differences. |
| SetPropertyValue(mapping, value) | Sets the value of a property specified by a mapping. |
| OnPropertyChanged(sender, e) | Handles the property changed event. |
| ShowLoading() | Sets the control to a loading state. |
| OnPreRender(sender, e) | Raises the PreRender event. |
| OnPropertyChanging(sender, e) | Handles the property changing event. |
| OnDoubleClick(sender, e) | Raises the DoubleClick event. |
| OnClick(sender, e) | Raises the Click event. |
Events
| Name | Description |
|---|---|
| Init | Triggered when the control is initialized. |
| Load | Triggered when the control is loaded. |
| DoubleClick | Triggered when the control is double-clicked. |
| PreRender | Triggered before the control is rendered. |
| PropertyValueGet | Triggered when retrieving a control property value. |
| Click | Triggered when the control is clicked. |
| Render | Triggered when the control is rendered. |